package org.minbox.framework.microservice.good.service.impl;

import org.minbox.framework.microservice.common.entity.GoodInfo;
import org.minbox.framework.microservice.good.mapper.GoodMapper;
import org.minbox.framework.microservice.good.service.GoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 商品业务逻辑接口实现
 *
 * @author 恒宇少年
 */
@Service
@Transactional
public class GoodServiceImpl implements GoodService {
    @Autowired
    private GoodMapper goodMapper;

    @Override
    public GoodInfo findById(Integer goodId) {
        return goodMapper.selectOne(goodId);
    }
}
